package com.arpa.wms.domain.dto;

import com.arpa.wms.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 仓库费用明细DTO
 * </p>
 *
 * @author LEO
 * @since 2020-11-17
 */
@Data
@ApiModel(value="ExpenseDetailDTO对象", description="仓库费用明细")
public class ExpenseDetailDTO extends BasicEntity {

    @ApiModelProperty(value = "所属机构",hidden = true)
    private String groupCode;

    @ApiModelProperty(value = "状态:UNSETTLED(未结算)，SETTLED(已结算)，PARTIALLY_SETTLED(部分结算)")
    private String status;

    @ApiModelProperty(value = "仓库标识")
    private String warehouseCode;

    @ApiModelProperty(value = "入驻商",hidden = true)
    private String shipmentCode;

    @ApiModelProperty(value = "登录仓库授权该账号的货主集合")
    private List<String> shipmentCodes;


    @ApiModelProperty(value = "货主名称")
    private String shipmentName;


    @ApiModelProperty(value = "来源单号")
    private String sourceCode;



    @ApiModelProperty(value = "订单开始日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate gmtOrderStart;

    @ApiModelProperty(value = "订单结束日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate gmtOrderEnd;

    @ApiModelProperty(value = "商品编码")
    private String goodCode;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "数量")
    private BigDecimal quantity;

    @ApiModelProperty(value = "重量")
    private BigDecimal weight;


    @ApiModelProperty(value = "收货批次")
    private String receiveLot;


    @ApiModelProperty(value = "费用类型")
    private String feeType;

    @ApiModelProperty(value = "结算单位：PIECE（件），TON（吨）")
    private String billingUnit;

    @ApiModelProperty(value = "单价上限")
    private BigDecimal unitPriceUp;
    @ApiModelProperty(value = "单价下限")
    private BigDecimal unitPriceLow;



    @ApiModelProperty(value = "金额上限")
    private BigDecimal amountMoneyUp;
    @ApiModelProperty(value = "金额下限")
    private BigDecimal amountMoneyLow;


    @ApiModelProperty(value = "已结算金额上限")
    private BigDecimal settledMoneyUp;
    @ApiModelProperty(value = "已结算金额下限")
    private BigDecimal settledMoneyLow;

    @ApiModelProperty(value = "未结算金额上限")
    private BigDecimal unsettledMoneyUp;
    @ApiModelProperty(value = "未结算金额下限")
    private BigDecimal unsettledMoneyLow;


    @ApiModelProperty(value = "待结算金额上限")
    private BigDecimal waitingSettledMoneyUp;
    @ApiModelProperty(value = "待结算金额下限")
    private BigDecimal waitingSettledMoneyLow;



    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate gmtSettledBeginStart;

    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate gmtSettledBeginEnd;

    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate gmtSettledEndStart;
    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate gmtSettledEndEnd;


    @ApiModelProperty(value = "备注")
    private String remarks;


    @ApiModelProperty(value = "第几页")
    private Integer pageNum=1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize=10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;

    @ApiModelProperty(value = "授权该账号的仓库集合")
    private List<String> warehouseCodes;


}
